Belgelerim/ceng_491/implementation/doxygen/TraffEdu_Developers_Manual_Reference_ToSource/PhysicsServer.h

Go to the documentation of this file.
00001 
00004 class PhysicsServer  
00005 {
00006 public:
00010         virtual ~PhysicsServer();
00018         bool    init(int groundSizeX, int groundSizeY);
00023         void    shutdown();
00024         void    setCrashId(int soundId);
00032         bool    registerClient(PhysicsClient* client);
00039         bool    update(double step);
00040 
00041 public:
00042 
00043         static PhysicsServer* getInstance() { return &_instance; }
00051         static void collisionCallback (void *data, dGeomID o1, dGeomID o2);
00052 
00053 protected:
00054         int sound_id;
00055         int kacKez;
00056         
00061         dWorldID                _world;
00066         dSpaceID                _space;
00067         dJointGroupID   _contactgroup;
00068         dSpaceID                _envSpace;
00069         dGeomID                 _ground;
00070 
00071         vector<dGeomID> crashedGeomIds;
00072 
00073 private:
00077         PhysicsServer(); 
00078 
00079         void checkCollision(void* data, dGeomID o1, dGeomID o2);
00080 
00081 private:        
00082 
00083         static PhysicsServer _instance;
00084 
00085 private:
00090         vector<PhysicsClient*> _clientList;
00091 };
00092 

Generated on Sun May 28 18:54:09 2006 for TraffEdu by  doxygen 1.4.6-NO